
package com.submaxim_testdb.data;

import java.io.Serializable;


/**
 *  submaxim_testDB.DataFieldsId
 *  01/20/2012 12:39:17
 * 
 */
public class DataFieldsId
    implements Serializable
{

    private Integer userId;
    private String tagName;
    private String dataType;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof DataFieldsId)) {
            return false;
        }
        DataFieldsId other = ((DataFieldsId) o);
        if (this.userId == null) {
            if (other.userId!= null) {
                return false;
            }
        } else {
            if (!this.userId.equals(other.userId)) {
                return false;
            }
        }
        if (this.tagName == null) {
            if (other.tagName!= null) {
                return false;
            }
        } else {
            if (!this.tagName.equals(other.tagName)) {
                return false;
            }
        }
        if (this.dataType == null) {
            if (other.dataType!= null) {
                return false;
            }
        } else {
            if (!this.dataType.equals(other.dataType)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.userId!= null) {
            rtn = (rtn + this.userId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.tagName!= null) {
            rtn = (rtn + this.tagName.hashCode());
        }
        rtn = (rtn* 37);
        if (this.dataType!= null) {
            rtn = (rtn + this.dataType.hashCode());
        }
        return rtn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

}
